package com.yuan.yblog.common.consts;

/**
 * 缓存常量类
 * 缓存key有效时间 **，单位：秒
 * 锁等待时间LOCK_**_WAIT，单位：毫秒
 */
public class RedisKey {

     /**
      * 验证码key
      */
     public static final String CAPTCHA = "captcha:";
     public static final Long CAPTCHA_EXPIRE = 5*60L;


     /**
      * 登录缓存
      */
     public static final String AUTH_LOGIN_USER = "auth:loginUser:";
     public static final Long AUTH_LOGIN_USER_EXPIRE = 60*60L;

     /**
      * 限流key有效时间
      */
     public static final long LIMIT_KEY_EXPIRE = 5*60;

}
